package com.studyroom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.studyroom.dto.LoginDTO;
import com.studyroom.dto.RegisterDTO;
import com.studyroom.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    String login(LoginDTO loginDTO);
    void register(RegisterDTO registerDTO);
    User getUserByUsername(String username);
    List<User> list();
    User findByUsernameAndPhone(String username, String phone);
    
    /**
     * 重置密码
     * @param username 用户名
     * @param email 邮箱
     * @param verificationCode 验证码
     * @param newPassword 新密码
     * @return 包含操作结果和消息的Map
     */
    Map<String, Object> resetPassword(String username, String email, String verificationCode, String newPassword);
} 